<?php

namespace iBrand\Component\Gift\Models;

use Illuminate\Database\Eloquent\Model;
use \iBrand\Component\Discount\Models\Coupon;
use DB;
use iBrand\Component\User\Models\User;


class GiftCouponReceive extends Model
{
    protected $table = 'el_gift_coupon_receive';

    protected $guarded = ['id'];

    public function coupon()
    {
        return $this->belongsTo(Coupon::class, 'discount_id', 'discount_id');
    }

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }
}

